package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公告列表简略信息对象 simple_notice_preview
 *
 * @author ruoyi
 * @date 2021-12-12
 */
public class SimpleNoticePreview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 社区公告id */
    private String noticeId;

    /** 公告标题 */
    @Excel(name = "公告标题")
    private String title;

    /** 所属板块 */
    @Excel(name = "所属板块")
    private String sectionId;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private Integer topStatus;

    /** 缩略图链接 */
    @Excel(name = "缩略图链接")
    private String picUrl;

    /** 公告创建人 */
    @Excel(name = "公告创建人")
    private String author;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date syncTime;

    public void setNoticeId(String noticeId)
    {
        this.noticeId = noticeId;
    }

    public String getNoticeId()
    {
        return noticeId;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setSectionId(String sectionId)
    {
        this.sectionId = sectionId;
    }

    public String getSectionId()
    {
        return sectionId;
    }
    public void setTopStatus(Integer topStatus)
    {
        this.topStatus = topStatus;
    }

    public Integer getTopStatus()
    {
        return topStatus;
    }
    public void setPicUrl(String picUrl)
    {
        this.picUrl = picUrl;
    }

    public String getPicUrl()
    {
        return picUrl;
    }
    public void setAuthor(String author)
    {
        this.author = author;
    }

    public String getAuthor()
    {
        return author;
    }
    public void setSyncTime(Date syncTime)
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime()
    {
        return syncTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("noticeId", getNoticeId())
                .append("title", getTitle())
                .append("sectionId", getSectionId())
                .append("topStatus", getTopStatus())
                .append("picUrl", getPicUrl())
                .append("author", getAuthor())
                .append("syncTime", getSyncTime())
                .toString();
    }
}
